#pragma once
#include "DXAMLCommon.h"



class CReferenceCountBase
{
public:
	CReferenceCountBase();
	virtual ~CReferenceCountBase();
	void AddRefPreCheck();
	void AddRefPostCheck( XUINT32 cReferences);
	void ReleasePreCheck();
	void ReleasePostCheck( XUINT32 cReferences);
	CReferenceCountBase & operator=(  const CReferenceCountBase  & rhs );
public:
	__declspec(align(8)) XUINT32 m_cReferences;
	XUINT64 m_magic;
};

